package com.lngsyz.ywtb.enumeration;

/**
 * @author Administrator
 *
 */
public enum CertType {
	SFZ("居民身份证", "111"),
	HZ("普通护照", "414"),
	QT("其他", "990");

	private String name;
	private String key;

	private CertType(String name, String key) {
		this.name = name;
		this.key = key;
	}

	public static String getNameByKey(String key) {
		for (CertType state : CertType.values()) {
			if (state.getKey().equalsIgnoreCase(key)) {
				return state.getName();
			}
		}
		return "";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

}
